﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
using System.Threading;
using Microsoft.Office.Interop.Outlook;
using System.Windows.Forms;

namespace Revolutions.OutlookTreeExpander
{
    public partial class OutlookTreeExpanderAddIn
    {
        private void OnStartup(object sender, System.EventArgs e)
        {
            TreeNodeExpander treeNodeExpander = new TreeNodeExpander(Application,
                                                                     Properties.Settings.Default.StartUpTreeNode,
                                                                     Properties.Settings.Default.TreeNodesToOpen);
            treeNodeExpander.ExpandOutlookTree();
        }

        private void OnShutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(OnStartup);
            this.Shutdown += new System.EventHandler(OnShutdown);
        }

        #endregion
    }
}
